package slxy.jiangtao.dts.core.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/***
 * 异常封装
 * 
 * @author zhouzq
 * @time 2015-4-22
 */
public class AppException extends RuntimeException {
	/***
	 * 日志工具
	 */
	protected Logger logger = LoggerFactory.getLogger(getClass());
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public AppException() {

	}

	public AppException(String message) {
		super(message);
	}

	public AppException(String paramString, Throwable paramThrowable) {
		super(paramString, paramThrowable);
		logger.error(paramString, paramThrowable);
	}

	public String toString() {
		return getMessage();
	}

}
